package com.study.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.entity.db2.User2PO;
import com.study.mapper.db2.User2Mapper;
import com.study.service.IUser2Service;

@Service
public class User2ServiceImpl implements IUser2Service {

	@Autowired
	private User2Mapper user2Mapper;

	@Override
	public List<User2PO> queryAllUser() {
		return user2Mapper.queryAllUser();
	}

	@Override
	public User2PO findById(Integer id) {
		return user2Mapper.findById(id);
	}

	@Override
	public User2PO findByName(String name) {
		return user2Mapper.findByName(name);
	}

}
